<?php
namespace app\index\controller;
use app\index\model\tableA;
use app\index\model\platformTable;
use app\index\model\productTable;
class Index extends Common
{
	public function index(){
		$countA = tableA::where('status',0)->select()->count();
		$countB = tableA::where('status',1)->select()->count();
		$countC = tableA::where('back_state',0)->select()->count();
		$countD = tableA::where('back_state',1)->select()->count();
		$countE = platformTable::select()->count();
		$countF = productTable::select()->count();
		$this->assign([
			'countA' => $countA,
			'countB' => $countB,
			'countC' => $countC,
			'countD' => $countD,
			'countE' => $countE,
			'countF' => $countF
		]);
		return view();
	}
}
